<cfsetting enablecfoutputonly="yes">

<cfparam name="attributes.url" default="">
<cfparam name="attributes.dtd" default="">
<cfparam name="attributes.debug" default="false">
<cfparam name="attributes.debuglevel" default="1,2,3">
<cfparam name="attributes.customerid">
<cfparam name="attributes.order_number">
<cfparam name="attributes.xml" default="">
<cfparam name="attributes.returnvar" default="xti_get_order2">
<cfparam name="attributes.simple_serial" default=false>
<cfparam name="attributes.set_session_variables" default="false">
<cfparam name="attributes.user_id" default="">
<cfparam name="attributes.cid" default="">
<!--- --------------------------------------------------------------------------- --->

<cfset attributes.arraylist="shopping_cart.line_item,configuration.component,configuration.warranty,product.warranty,order.payment,order.suborder,product.serial_number,baseunit.serial_number,order.tracking_number">
<cfset attributes.version = 2>

<cfset var.start = CreateODBCdateTime(now())>

<!--- Build the xml request doc then post it --->
<cfscript>
if (len(#attributes.xml#)) {
	xml = #attributes.xml#;
}
else {
xml = 
'<!DOCTYPE copy SYSTEM "#attributes.dtd#">
<xtiinput>
   <inputheader>
      <actionset>
         <action>get_order2</action>
      </actionset>
   </inputheader>
   <inputdata>
      <customerid>#ucase(attributes.customerid)#</customerid>
	  <user_id>#attributes.user_id#</user_id>
	  <cid>#attributes.cid#</cid>
      <order_number>#ucase(attributes.order_number)#</order_number>	
   </inputdata>
</xtiinput>';
}
</cfscript>